#pragma once


#define _CRT_SECURE_NO_WARNINGS

#include <windows.h>
#include <direct.h> 

#define WIN32
#define API_EXPORTS

#ifdef WIN32
	#ifdef API_EXPORTS
		#define API extern "C" __declspec(dllexport)
	#else
		#define API __declspec(dllimport) 
	#endif
#else
	#define API
#endif


#define ERR_CreatePipe -1
#define ERR_CreateProcess -2
#define ERR_PeekNamedPipe -3
#define ERR_ReadFile -4
#define ERR_WriteFile -5

#define VERSION "2.0"

API const char* Version();
API int MASM(const char* SourceFileName, const char* OutputFileName, char* OutputBuff, int BuffLen);
API int LINK(const char* SourceFileName, const char* OutputFileName, char* OutputBuff, int BuffLen);